package ch.unisi.inf.pfii.teamred.pacman.model;

import java.io.Serializable;
import java.util.HashMap;

/**
 * @author luca.vignola@lu.unisi.ch
 * 
 */
public final class Highscore implements Serializable {

	private final HashMap<String, Integer> highscores;

	public Highscore() {
		highscores = new HashMap<String, Integer>();
	}
	
	public final HashMap<String, Integer> getHighscores() {
		return highscores;
	}

	public final void addHighscore(final String name, final int score) {
		highscores.put(name, score);
	}

	public final int getScore(final String name) {
		return highscores.get(name);
	}

	public final void removeHighscore(final String name) {
		highscores.remove(name);
	}
}
